﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manage.aspx.cs" Inherits="manage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="~/css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="m_box">
        <div class="m_head">
            管理</div>
        <div class="m_middle">
            <div class="m_m_c" style="width:60px">
                <span>卦序号</span></div>
            <div class="m_m_c" style="width:60px">
                <asp:TextBox ID="TextBox1" runat="server" Width="50px"></asp:TextBox>
            </div>
            <div class="m_m_c" style="width:60px">
                <asp:Label ID="Label1" runat="server" Text="卦号码" ></asp:Label>
            </div>
            <div class="m_m_c" style="width:100px">
                <asp:TextBox ID="TextBox2" runat="server" style="width:90px"></asp:TextBox>
            </div>
            <div class="m_m_c" style="width:60px">
                <asp:Label ID="Label2" runat="server" Text="卦名" ></asp:Label>
            </div>
            <div class="m_m_c" style="width:100px">
                <asp:TextBox ID="TextBox4" runat="server" style="width:90px"></asp:TextBox>
            </div>
            <div class="m_m_c">
                <asp:Button ID="Button2" runat="server" Text="提交" OnClick="Button2_Click" />
            </div>
        </div>
        <div class="m_middle" style="height: 100px">
            <div class="m_m_c" style="width: 60px">
                <span>卦文</span></div>
            <div class="m_m_c" style="height: 95px; width: 900px">
                <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Width="876px" Height="90px"></asp:TextBox>
            </div>
        </div>
        <div class="m_content">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                GridLines="Horizontal" Height="16px" 
                Width="920px" AllowPaging="True" DataKeyNames="id" 
                onrowdeleting="GridView1_RowDeleting" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="90px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="xuhao" HeaderText="卦序号" />
                    <asp:BoundField DataField="guatu" HeaderText="卦号码" />
                    <asp:BoundField DataField="guaming" HeaderText="卦名" />
                    <asp:BoundField DataField="guawen" HeaderText="卦文" />
                    <asp:HyperLinkField HeaderText="编辑" Text="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ChangeDanXuan.aspx?ID={0}">
                        <ItemStyle Width="100px" />
                    </asp:HyperLinkField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                            <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除" OnClientClick="return confirm('您确认删除该记录吗?')" />
                        </ItemTemplate>
                        <ItemStyle Width="100px" />
                    </asp:TemplateField>
                </Columns>
                <RowStyle HorizontalAlign="Center" />
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#3a9cff" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
